---
apiVersion: v1
kind: DeploymentConfig
metadata:
  name: coreos-cincinnati
  labels:
    app: coreos-cincinnati
spec:
  replicas: 1
  selector:
    app: coreos-cincinnati
  strategy:
    activeDeadlineSeconds: 21600
    recreateParams:
      timeoutSeconds: 600
    resources: {}
    rollingParams:
      intervalSeconds: 1
      maxSurge: 25%
      maxUnavailable: 25%
      timeoutSeconds: 600
      updatePeriodSeconds: 1
    type: Rolling
  template:
    metadata:
      labels:
        app: coreos-cincinnati
    spec:
      containers:
        - name: "fcos-graph-builder"
          image: "image-registry.openshift-image-registry.svc:5000/coreos-cincinnati/fedora-coreos-cincinnati:gitref-{{fcos_cincinnati_deploy_git_sha}}"
          args: [
            "/usr/local/bin/fcos-graph-builder",
            "-v",
            "-c", "/etc/cincinnati/graph-builder.toml",
          ]
          volumeMounts:
            - name: "stub-config"
              mountPath: "/etc/cincinnati/"
              readOnly: true
        - name: "fcos-policy-engine"
          image: "image-registry.openshift-image-registry.svc:5000/coreos-cincinnati/fedora-coreos-cincinnati:gitref-{{fcos_cincinnati_deploy_git_sha}}"
          args: [
            "/usr/local/bin/fcos-policy-engine",
            "-v",
            "-c", "/etc/cincinnati/policy-engine.toml",
          ]
          volumeMounts:
            - name: "stub-config"
              mountPath: "/etc/cincinnati/"
              readOnly: true
      volumes:
        - name: "stub-config"
          configMap:
            name: "coreos-cincinnati-config-stub"
  triggers:
    - type: "ConfigChange"
